package com.nulldev.util.JVM.reflections.cache;

import java.lang.reflect.InvocationTargetException;

public class CachedReflectException extends RuntimeException {
	private static final long serialVersionUID = -365674919934675079L;

	public CachedReflectException() {
		super();
	}

	public CachedReflectException(final String message) {
		super(message);
	}

	public CachedReflectException(final Throwable e) {
		super(e instanceof InvocationTargetException ? ((InvocationTargetException) e).getCause() : e);
	}

	public CachedReflectException(final String message, final Throwable e) {
		super(message, e instanceof InvocationTargetException ? ((InvocationTargetException) e).getCause() : e);
	}
}
